import service from '@/utils/request'

// @Tags CoopComTwo
// @Summary 创建CoopComTwo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CoopComTwo true "创建CoopComTwo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /coopComTwo/createCoopComTwo [post]
export const createCoopComTwo = (data) => {
     return service({
         url: "/coopComTwo/createCoopComTwo",
         method: 'post',
         data
     })
 }


// @Tags CoopComTwo
// @Summary 删除CoopComTwo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CoopComTwo true "删除CoopComTwo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /coopComTwo/deleteCoopComTwo [delete]
 export const deleteCoopComTwo = (data) => {
     return service({
         url: "/coopComTwo/deleteCoopComTwo",
         method: 'delete',
         data
     })
 }

// @Tags CoopComTwo
// @Summary 删除CoopComTwo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除CoopComTwo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /coopComTwo/deleteCoopComTwo [delete]
 export const deleteCoopComTwoByIds = (data) => {
     return service({
         url: "/coopComTwo/deleteCoopComTwoByIds",
         method: 'delete',
         data
     })
 }

// @Tags CoopComTwo
// @Summary 更新CoopComTwo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CoopComTwo true "更新CoopComTwo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /coopComTwo/updateCoopComTwo [put]
 export const updateCoopComTwo = (data) => {
     return service({
         url: "/coopComTwo/updateCoopComTwo",
         method: 'put',
         data
     })
 }


// @Tags CoopComTwo
// @Summary 用id查询CoopComTwo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CoopComTwo true "用id查询CoopComTwo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /coopComTwo/findCoopComTwo [get]
 export const findCoopComTwo = (params) => {
     return service({
         url: "/coopComTwo/findCoopComTwo",
         method: 'get',
         params
     })
 }


// @Tags CoopComTwo
// @Summary 分页获取CoopComTwo列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取CoopComTwo列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /coopComTwo/getCoopComTwoList [get]
 export const getCoopComTwoList = (params) => {
     return service({
         url: "/coopComTwo/getCoopComTwoList",
         method: 'get',
         params
     })
 }